import request from '@/utils/request'
// var authorization = window.localStorage.getItem('token')

/////////////////***消费明细***///

// 分页查询
export function consumeList (data) {
  return request({
    url: '/consume/getPage',
    method: 'post',
    data:data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

/////////////////***消费明细***///


/////////////////***充值明细***///

// 分页查询
export function rechargeList (data) {
  return request({
    url: '/recharge/list',
    method: 'post',
    data:data,
    headers: {
      'Content-Type': 'application/json',
      'Authorization': window.localStorage.getItem('token'),
    }
  })
}

/////////////////***充值明细***///